﻿// EducationLevel.cs
public class EducationLevel
{
    /// <summary>
    /// 学历唯一标识（可用于数据库存储）
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 显示名称（用于界面展示）
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 默认构造函数
    /// </summary>
    public EducationLevel() { }

    /// <summary>
    /// 带参构造函数
    /// </summary>
    public EducationLevel(int id, string name)
    {
        Id = id;
        Name = name;
    }

    /// <summary>
    /// 预定义学历列表
    /// </summary>
    public static List<EducationLevel> DefaultLevels => new List<EducationLevel>
    {
        new EducationLevel(1, "初中及以下"),
        new EducationLevel(2, "高中/中专"),
        new EducationLevel(3, "大专"),
        new EducationLevel(4, "本科"),
        new EducationLevel(5, "硕士研究生"),
        new EducationLevel(6, "博士研究生")
    };
}